home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Assistant
/
Business Assistant.iso
/
acctg
/
tx40e
/
io.doc
< prev
next >
Wrap
Text File
|
1988-07-22
|
2KB
|
26 lines
-- I/O CONTROL
You may want the ability to send special character strings to the printer
or communications ports. Why? Perhaps you want to place your printer into
letter-quality or draft mode at the touch of a few keys. Or maybe you'd like
to send a telephone number out the communications port.
A file containing I/O instructions must have the extension, ".I-O". As
with any other file used by Nifty, an "I-O" file's first 24 lines contain the
screen that will be presented to the user. The next 1 to 48 lines contain in-
structions. Each instruction line, limited to 30 characters, must begin with
the letter or number that will cause the I/O action described on the line to
take place. The letter or number will be followed by "=" and the string to be
sent to an I/O port. Finally, the line must contain ">" and the name of a val-
id I/O device (CON, LPT1, LPT2, LPT3, COM1, or COM2). A carriage return may be
indicated by "<", while "~" tells Nifty to pause for 1/2-second. Examples:
1=HELLO>CON
2=HELLO<>LPT1
3=HELLO~BUDDY>COM1
The first line instructs Nifty to send "HELLO" to the CON device when the "1"
key is pressed. The second line sends "HELLO" and a carriage return to the
printer at the LPT1 port when "2" is pressed. The third line sends "HELLO", a
1/2-second pause, and "BUDDY" to the COM1 port when "3" is pressed.